<template>
  <el-form label-width="100px">
    <el-form-item label="企业名称">
      <el-input disabled v-model="info.name" width="200px" />
    </el-form-item>
    <el-form-item label="公司地址">
      <el-input disabled v-model="info.companyAddress" />
    </el-form-item>
    <el-form-item label="公司电话">
      <el-input disabled v-model="info.companyPhone" />
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input disabled v-model="info.mailbox" />
    </el-form-item>
    <el-form-item label="备注">
      <el-input disabled v-model="info.remarks" />
    </el-form-item>
  </el-form>
</template>

<script>
import { company } from '@/api/setting.js'
import { mapState } from 'vuex'
export default {
  data () {
    return {
      info: ''
    }
  },
  computed: {
    ...mapState('user', ['userInfo'])
  },
  async created () {
    const res = await company(this.userInfo.companyId)
    this.info = res.data
    console.log('公司', res)
  }
}
</script>

<style></style>
